-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce casts for LEAD/LAG #9468
Conversation
----RepartitionExec: partitioning=Hash([i@0], 4), input_partitions=4 | ||
------AggregateExec: mode=Partial, gby=[i@0 as i], aggr=[] | ||
--------MemoryExec: partitions=4, partition_sizes=[1, 2, 1, 1] | ||
#query TT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is failing on my local, not sure if its my PR, as there is no window in the plan
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -400,7 +400,7 @@ AggregateExec: mode=FinalPartitioned, gby=[i@0 as i], aggr=[] | |||
--CoalesceBatchesExec: target_batch_size=8192 | |||
----RepartitionExec: partitioning=Hash([i@0], 4), input_partitions=4 | |||
------AggregateExec: mode=Partial, gby=[i@0 as i], aggr=[] | |||
--------MemoryExec: partitions=4, partition_sizes=[1, 2, 1, 1] | |||
--------MemoryExec: partitions=4, partition_sizes=[1, 1, 2, 1] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dont see how the PR can affect the partition size distribution as the test plan doesn't have window. More likely the test is odd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @comphead. This PR is LGTM!.
Which issue does this PR close?
Closes #.
Rationale for this change
Reduce number of unnecessary casts from
i64
tousize
and vice versaWhat changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?